<template>
	<view class="datamap">
		<view class="datamap_item" :class="item.id" v-for="(item,index) in datamapList" :key="item.id" @click="navDetail(item.url)">
			<view>
				<view class="item_title">{{item.title}}</view>
				<view class="item_remark">{{item.remark}}</view>
			</view>
		</view>
	</view>
</template>

<script>
	export default {
		data() {
			return {
				datamapList:[
					{
						id:'jysj',
						title:'交易数据统计',
						remark:'在这里可以查看最新交易数据',
						url:'../dataformDetail/dataformDetail'
					},
					// {
					// 	id:'slsb',
					// 	title:'刷脸设备交易统计',
					// 	remark:'可查看刷脸设备统计数量',
					// 	url:'../tradetotalFaceDevice/tradetotalFaceDevice'
					// },
				]
			}
		},
		onLoad:function(){
			
		},
		methods: {
			navDetail:function(url){
				uni.navigateTo({
					url:url
				})
			}
		}
	}
</script>

<style lang="scss" scoped>
	.datamap{
		min-height: 100%;
		background-color: #F5F5F5;
		padding: 10rpx;
		.datamap_item{
			width: 100%;
			height: 280rpx;
			background-size: 100% 100%;
			display: flex;
			align-items: center;
			padding-left: 35%;
			.item_title{
				font-size: 42rpx;
				font-weight: bold;
				margin-bottom: 10rpx;
			}
			.item_remark{
				font-size: $uni-font-size-sm;
			}
			&.slsb{
				background-image: url("../../static/img/ic_data_slsb.png");
			}
			&.jysj{
				background-image: url("../../static/img/ic_data_trade.png");
			}
		}
	}
</style>
